package com.feib.stms.batch.service;

import java.io.Serializable;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.feib.stms.batch.dao.CodeTableJdbcDao;
import com.feib.stms.batch.domain.CodeTable;


@Service("codeTableService")
public class CodeTableService implements Serializable{



	private static final long serialVersionUID = -3149639013071895992L;

	protected Logger logger = LoggerFactory.getLogger(this.getClass());

	@Resource(name="codeTableJdbcDao")
	private CodeTableJdbcDao codeTableJdbcDao;



	public CodeTable getCodeTable(String codeKind, String codeValue)
	{

		return this.codeTableJdbcDao.getCodeTable(codeKind, codeValue);

	}


	public int insert(CodeTable codeTable)
	{
		return this.codeTableJdbcDao.insert(codeTable);
	} 



	public int update(CodeTable codeTable) 
	{
		return this.codeTableJdbcDao.update(codeTable);
	}



}
